home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Source Code
/
C
/
Applications
/
Moscow ML 1.42
/
src
/
test
/
testint.sml
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-08-18
|
280 b
|
15 lines
|
[
TEXT/R*ch
]
fun showint (i:int) = print (makestring i);
fun showintnl i = (showint i; print "\n");
fun f n =
let
fun loop () = (showint n; loop ())
in
case n
of 0 => 0
| _ => (loop() handle Interrupt => f (n-1))
end;
print "Enter `f 5;', and then press ^C !\n";